using System;
using System.Collections.Generic;
using System.Text;
using System.Resources;
using System.Reflection;
using System.Threading;
using Microsoft.BizTalk.Component.Interop;
using Microsoft.BizTalk.TransportProxy.Interop;

namespace Microsoft.Samples.BizTalk.Adapter.Tcp.Send
{
    /// <summary>
    ///     This class implements a send adapter in BizTalk.
    /// </summary>
    /// <author>
    ///     Paul Brown
    /// </author>
    public partial class SendAdapter : IBaseComponent,
                                       IBTTransport,
                                       IPersistPropertyBag,
                                       IBTTransportControl,
                                       IBTBatchTransmitter,
                                       IAdapter
    {
        #region IBaseComponent Members

        /// <summary>
        ///     This property returns the description for the adapter.
        /// </summary>
        public string Description
        {
            get { return (TraceHelper.ResourceManager.GetString(ResourceConstants.SendAdapterDescription)); }
        }

        /// <summary>
        ///     This property returns the name of the adapter.
        /// </summary>
        public string Name
        {
            get { return (TraceHelper.ResourceManager.GetString(ResourceConstants.SendAdapterName)); }
        }

        /// <summary>
        ///     This property returns the version of the receive adapter.
        /// </summary>
        public string Version
        {
            get { return (Assembly.GetExecutingAssembly().GetName().Version.ToString()); }
        }

        #endregion
    }
}
